﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000E37 RID: 3639
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ReviveRogueAvatarScRsp : IMessage<ReviveRogueAvatarScRsp>, IMessage, IEquatable<ReviveRogueAvatarScRsp>, IDeepCloneable<ReviveRogueAvatarScRsp>, IBufferMessage
	{
		// Token: 0x17002E3A RID: 11834
		// (get) Token: 0x0600A35B RID: 41819 RVA: 0x001B702B File Offset: 0x001B522B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ReviveRogueAvatarScRsp> Parser
		{
			get
			{
				return ReviveRogueAvatarScRsp._parser;
			}
		}

		// Token: 0x17002E3B RID: 11835
		// (get) Token: 0x0600A35C RID: 41820 RVA: 0x001B7032 File Offset: 0x001B5232
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ReviveRogueAvatarScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002E3C RID: 11836
		// (get) Token: 0x0600A35D RID: 41821 RVA: 0x001B7044 File Offset: 0x001B5244
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ReviveRogueAvatarScRsp.Descriptor;
			}
		}

		// Token: 0x0600A35E RID: 41822 RVA: 0x001B704B File Offset: 0x001B524B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ReviveRogueAvatarScRsp()
		{
		}

		// Token: 0x0600A35F RID: 41823 RVA: 0x001B706C File Offset: 0x001B526C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ReviveRogueAvatarScRsp(ReviveRogueAvatarScRsp other) : this()
		{
			this.trialAvatarIdList_ = other.trialAvatarIdList_.Clone();
			this.retcode_ = other.retcode_;
			this.reviveInfo_ = ((other.reviveInfo_ != null) ? other.reviveInfo_.Clone() : null);
			this.baseAvatarId_ = other.baseAvatarId_;
			this.baseAvatarIdList_ = other.baseAvatarIdList_.Clone();
			this.mMLAOFPPOIJ_ = other.mMLAOFPPOIJ_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600A360 RID: 41824 RVA: 0x001B70F2 File Offset: 0x001B52F2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ReviveRogueAvatarScRsp Clone()
		{
			return new ReviveRogueAvatarScRsp(this);
		}

		// Token: 0x17002E3D RID: 11837
		// (get) Token: 0x0600A361 RID: 41825 RVA: 0x001B70FA File Offset: 0x001B52FA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> TrialAvatarIdList
		{
			get
			{
				return this.trialAvatarIdList_;
			}
		}

		// Token: 0x17002E3E RID: 11838
		// (get) Token: 0x0600A362 RID: 41826 RVA: 0x001B7102 File Offset: 0x001B5302
		// (set) Token: 0x0600A363 RID: 41827 RVA: 0x001B710A File Offset: 0x001B530A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17002E3F RID: 11839
		// (get) Token: 0x0600A364 RID: 41828 RVA: 0x001B7113 File Offset: 0x001B5313
		// (set) Token: 0x0600A365 RID: 41829 RVA: 0x001B711B File Offset: 0x001B531B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueReviveInfo ReviveInfo
		{
			get
			{
				return this.reviveInfo_;
			}
			set
			{
				this.reviveInfo_ = value;
			}
		}

		// Token: 0x17002E40 RID: 11840
		// (get) Token: 0x0600A366 RID: 41830 RVA: 0x001B7124 File Offset: 0x001B5324
		// (set) Token: 0x0600A367 RID: 41831 RVA: 0x001B712C File Offset: 0x001B532C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint BaseAvatarId
		{
			get
			{
				return this.baseAvatarId_;
			}
			set
			{
				this.baseAvatarId_ = value;
			}
		}

		// Token: 0x17002E41 RID: 11841
		// (get) Token: 0x0600A368 RID: 41832 RVA: 0x001B7135 File Offset: 0x001B5335
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> BaseAvatarIdList
		{
			get
			{
				return this.baseAvatarIdList_;
			}
		}

		// Token: 0x17002E42 RID: 11842
		// (get) Token: 0x0600A369 RID: 41833 RVA: 0x001B713D File Offset: 0x001B533D
		// (set) Token: 0x0600A36A RID: 41834 RVA: 0x001B7145 File Offset: 0x001B5345
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MMLAOFPPOIJ
		{
			get
			{
				return this.mMLAOFPPOIJ_;
			}
			set
			{
				this.mMLAOFPPOIJ_ = value;
			}
		}

		// Token: 0x0600A36B RID: 41835 RVA: 0x001B714E File Offset: 0x001B534E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ReviveRogueAvatarScRsp);
		}

		// Token: 0x0600A36C RID: 41836 RVA: 0x001B715C File Offset: 0x001B535C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ReviveRogueAvatarScRsp other)
		{
			return other != null && (other == this || (this.trialAvatarIdList_.Equals(other.trialAvatarIdList_) && this.Retcode == other.Retcode && object.Equals(this.ReviveInfo, other.ReviveInfo) && this.BaseAvatarId == other.BaseAvatarId && this.baseAvatarIdList_.Equals(other.baseAvatarIdList_) && this.MMLAOFPPOIJ == other.MMLAOFPPOIJ && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600A36D RID: 41837 RVA: 0x001B71F4 File Offset: 0x001B53F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.trialAvatarIdList_.GetHashCode();
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.reviveInfo_ != null)
			{
				num ^= this.ReviveInfo.GetHashCode();
			}
			if (this.BaseAvatarId != 0U)
			{
				num ^= this.BaseAvatarId.GetHashCode();
			}
			num ^= this.baseAvatarIdList_.GetHashCode();
			if (this.MMLAOFPPOIJ != 0U)
			{
				num ^= this.MMLAOFPPOIJ.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600A36E RID: 41838 RVA: 0x001B7297 File Offset: 0x001B5497
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600A36F RID: 41839 RVA: 0x001B729F File Offset: 0x001B549F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600A370 RID: 41840 RVA: 0x001B72A8 File Offset: 0x001B54A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.BaseAvatarId != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.BaseAvatarId);
			}
			if (this.reviveInfo_ != null)
			{
				output.WriteRawTag(34);
				output.WriteMessage(this.ReviveInfo);
			}
			this.trialAvatarIdList_.WriteTo(ref output, ReviveRogueAvatarScRsp._repeated_trialAvatarIdList_codec);
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.Retcode);
			}
			this.baseAvatarIdList_.WriteTo(ref output, ReviveRogueAvatarScRsp._repeated_baseAvatarIdList_codec);
			if (this.MMLAOFPPOIJ != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.MMLAOFPPOIJ);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600A371 RID: 41841 RVA: 0x001B735C File Offset: 0x001B555C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.trialAvatarIdList_.CalculateSize(ReviveRogueAvatarScRsp._repeated_trialAvatarIdList_codec);
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.reviveInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.ReviveInfo);
			}
			if (this.BaseAvatarId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.BaseAvatarId);
			}
			num += this.baseAvatarIdList_.CalculateSize(ReviveRogueAvatarScRsp._repeated_baseAvatarIdList_codec);
			if (this.MMLAOFPPOIJ != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MMLAOFPPOIJ);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600A372 RID: 41842 RVA: 0x001B7408 File Offset: 0x001B5608
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ReviveRogueAvatarScRsp other)
		{
			if (other == null)
			{
				return;
			}
			this.trialAvatarIdList_.Add(other.trialAvatarIdList_);
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.reviveInfo_ != null)
			{
				if (this.reviveInfo_ == null)
				{
					this.ReviveInfo = new RogueReviveInfo();
				}
				this.ReviveInfo.MergeFrom(other.ReviveInfo);
			}
			if (other.BaseAvatarId != 0U)
			{
				this.BaseAvatarId = other.BaseAvatarId;
			}
			this.baseAvatarIdList_.Add(other.baseAvatarIdList_);
			if (other.MMLAOFPPOIJ != 0U)
			{
				this.MMLAOFPPOIJ = other.MMLAOFPPOIJ;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600A373 RID: 41843 RVA: 0x001B74BA File Offset: 0x001B56BA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600A374 RID: 41844 RVA: 0x001B74C4 File Offset: 0x001B56C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num > 90U)
				{
					if (num <= 112U)
					{
						if (num == 96U)
						{
							this.Retcode = input.ReadUInt32();
							continue;
						}
						if (num != 112U)
						{
							goto IL_41;
						}
					}
					else if (num != 114U)
					{
						if (num != 120U)
						{
							goto IL_41;
						}
						this.MMLAOFPPOIJ = input.ReadUInt32();
						continue;
					}
					this.baseAvatarIdList_.AddEntriesFrom(ref input, ReviveRogueAvatarScRsp._repeated_baseAvatarIdList_codec);
					continue;
				}
				if (num <= 34U)
				{
					if (num == 8U)
					{
						this.BaseAvatarId = input.ReadUInt32();
						continue;
					}
					if (num == 34U)
					{
						if (this.reviveInfo_ == null)
						{
							this.ReviveInfo = new RogueReviveInfo();
						}
						input.ReadMessage(this.ReviveInfo);
						continue;
					}
				}
				else if (num == 88U || num == 90U)
				{
					this.trialAvatarIdList_.AddEntriesFrom(ref input, ReviveRogueAvatarScRsp._repeated_trialAvatarIdList_codec);
					continue;
				}
				IL_41:
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04004291 RID: 17041
		private static readonly MessageParser<ReviveRogueAvatarScRsp> _parser = new MessageParser<ReviveRogueAvatarScRsp>(() => new ReviveRogueAvatarScRsp());

		// Token: 0x04004292 RID: 17042
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004293 RID: 17043
		public const int TrialAvatarIdListFieldNumber = 11;

		// Token: 0x04004294 RID: 17044
		private static readonly FieldCodec<uint> _repeated_trialAvatarIdList_codec = FieldCodec.ForUInt32(90U);

		// Token: 0x04004295 RID: 17045
		private readonly RepeatedField<uint> trialAvatarIdList_ = new RepeatedField<uint>();

		// Token: 0x04004296 RID: 17046
		public const int RetcodeFieldNumber = 12;

		// Token: 0x04004297 RID: 17047
		private uint retcode_;

		// Token: 0x04004298 RID: 17048
		public const int ReviveInfoFieldNumber = 4;

		// Token: 0x04004299 RID: 17049
		private RogueReviveInfo reviveInfo_;

		// Token: 0x0400429A RID: 17050
		public const int BaseAvatarIdFieldNumber = 1;

		// Token: 0x0400429B RID: 17051
		private uint baseAvatarId_;

		// Token: 0x0400429C RID: 17052
		public const int BaseAvatarIdListFieldNumber = 14;

		// Token: 0x0400429D RID: 17053
		private static readonly FieldCodec<uint> _repeated_baseAvatarIdList_codec = FieldCodec.ForUInt32(114U);

		// Token: 0x0400429E RID: 17054
		private readonly RepeatedField<uint> baseAvatarIdList_ = new RepeatedField<uint>();

		// Token: 0x0400429F RID: 17055
		public const int MMLAOFPPOIJFieldNumber = 15;

		// Token: 0x040042A0 RID: 17056
		private uint mMLAOFPPOIJ_;
	}
}
